<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
        <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js"></script>
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>        
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>管理员登录</title>
        <script language="javascript" type="text/javascript">
            $(document).ready(function(){
                $("#sumit").click(function(){
                   $.ajax({
                       url: "mrs",
                       type: "GET",
                       data: {name:$("#name").val(),pwd:$("#pwd").val()},
                       success: function (data) { 
                           var str="<p style=\"font-color:red\">用户名或密码错误</p>";
                           $("#show").append(str);
                       },
                       error: function (req, status, error) {
                           alert("请求处理出错，错误信息：" + error);
                       }
                   });
                });
            })
            $("#submit").click(function(){
                window.location.href="modifyManagerPwd.html";
            });
        </script>
    </head>
    <body background="images/timg.jpg" style=" background-size:100% 100%;background-attachment: fixed;">
        <div style="width: 600px;height: 380px;background-color: white;opacity: 0.5;position: absolute;left: 310px;top:100px;">
            <p style="font-size: x-large;margin-left: 230px;margin-top: 10px;font-weight:bolder;">管理员登录</p>
            <br>
            <form action="mrs" class="text-center form-inline">
                <div id="show" class="text-danger" style="width: 200px;margin-left: 230px">&nbsp;</div>
                <br>
                <label for="name" style="color: balck;font-size:20">用户名</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input name="name" id="name" type="text" style="border-color:darksalmon">
                <br>
                <br>
                <br>
                <label for="pwd" style="color: balck;font-size:20 ">密码</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input name="pwd" id="pwd" type="password" style="border-color:darksalmon">
                <br><br><br><br>
                    <button id="submit" class="btn btn-lg btn-primary" style="position: absolute;left: 180px">
                        &nbsp;&nbsp;&nbsp;&nbsp;登录&nbsp;&nbsp;&nbsp;&nbsp;
                    </button>
                
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                             
                <br>
                
            </form>
            <a href="modifyManagerPwd.html">
            <button class="btn btn-lg btn-primary" style="position: absolute;left: 320px;top:270px">修改密码</button></a>&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <a href="Userlogin.html" style="color: #1b6d85;font-weight: 550;left: 420px;top:250px">用户登录</a>
        </div>
    </body>
</html>
